<?php
class Maintenance
{
   public $maintenance;
   
   public function getMain()
    {
	 global $bdd;
     $donnees = $bdd->prepare("SELECT maintenance FROM etat");
     $donnees->execute();
	 $data=$donnees->fetch(PDO::FETCH_OBJ);
	 foreach($data as $k=>$v)
		{
			$this->$k = $v;
		}
		return $this->maintenance;
    }
	include('../Controleurs/maintenance.php');

	